$(function(){
	$("#sinaLogin").bind("click",sinaLogin);
});


function sinaLogin(){
	
//	var client_id = "1648372436";//大地微连接appKey
//	var redirect_uri = "../index.htm"/*tpa=http://www.95590.cn/*/;//微博登陆回调页
	var client_id = "3962707802";
//	var redirect_uri = "http://127.0.0.1/ebw/view/weiboLogin/wbLogin.jsp";
	var redirect_uri = "http://testzdf.com/ebw/view/weiboLogin/wbAutoLogin.jsp";
	var response_type = "token";
	var state = "1";
	var url = "https://api.weibo.com/oauth2/authorize?client_id="+client_id+"&redirect_uri="+redirect_uri+"&response_type="+response_type+"&state="+state;
	window.open(url,'_blank');
//	window.open (url, 'newwindow', 'height=300px, width=600px, scrollbars=yes, resizable=yes');
}